package com.mycode.chapter04;

import com.mycode.chapter04.core.SimpleContainer;
import org.apache.catalina.connector.http.HttpConnector;

public class Bootstrap {

    public static void main(String[] args) {
        HttpConnector connector = new HttpConnector();
        SimpleContainer container = new SimpleContainer();
        connector.setContainer(container);
        try {
            connector.initialize();
            connector.start();
            // 让应用程序等待，直到我们按下任何键
            System.in.read();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
